(define-module (staging openriichi)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix build-system meson)
  #:use-module (guix git-download)
  #:use-module (guix utils)
  #:use-module (gnu packages sdl)
  #:use-module (gnu packages gl)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages gnome))

(define-public openriichi
  (package
    (name "openriichi")
    (version "0.2.1.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/FluffyStuff/OpenRiichi.git")
             (commit (string-append "v" version))
             (recursive? #t)))
       (sha256
        (base32
         "1x6m4mli92chns5dky9aq9w4r4pnycvlpa2q0giydapm5q9fkslf"))))
    (build-system meson-build-system)
    (arguments
     '(#:glib-or-gtk? #t))
    (inputs
     `(("gtk+" ,gtk+)
       ("libgee" ,libgee)
       ("sdl-image" ,sdl2-image)
       ("sdl-mixer" ,sdl2-mixer)
       ("sdl" ,sdl2)
       ("glew" ,glew)))
    (native-inputs
     `(("pkg-config" ,pkg-config)
       ("vala" ,vala)))
    (synopsis "Japanese Mahjong client")
    (description
     "OpenRiichi is cross platform, and supports singleplayer and
multiplayer, with or without bots. It features all the standard riichi
rules, as well as some optional ones. It also supports game logging,
so games can be viewed again.")
    (home-page "https://github.com/FluffyStuff/OpenRiichi")
    (license license:gpl3+)))

openriichi
